package com.esd.crm.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.esd.crm.entity.Orders;

@Mapper
public interface OrdersMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(Orders record);

	int insertSelective(Orders record);

	Orders selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Orders record);

	int updateByPrimaryKeyWithBLOBs(Orders record);

	int updateByPrimaryKey(Orders record);
	
	int selectMaxOrderNumber(String nowdate);

	List<Orders> selectOrderNumbers(Map<String, Object> param);

	List<Orders> selectByParam(Map<String, Object> param);

	Integer selectByParamCount(Map<String, Object> param);

	Orders selectByOrderNumber(Map<String, Object> param);

	Orders selectNumberTotalByOrderNumber(Map<String, Object> param);
	
	Orders selectByCount(Map<String, Object> param);

}